package com.example.exam.mapper;

import com.example.exam.dto.ExamTopicStuDTO;
import com.example.exam.dto.ExamTopicTchDTO;
import com.example.exam.entity.Exam;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 江晨晖
 * @since 2022-12-15
 */
@Mapper
public interface ExamMapper extends BaseMapper<Exam> {

    ExamTopicTchDTO selectByPrimaryKey(@Param("examId") int examId);

    ExamTopicStuDTO stuSelectByPrimaryKey(@Param("examId") int examId, @Param("userId") String userId);
}
